<ul class="breadcrumb">
</ul>

<div class="row-fluid">
    <div class="span2" >
        <%- partial('home-nav-list') %>
    </div>
    <div class="span10">
        <div>
            <input type="text" class="span7" name="searchCD">
            <button type="submit" class="btn btn-success"><i class="icon-comment icon-white"></i> 搜索</button>
            <a href="/reset" class="btn btn-danger" style="margin-left:100px">重置[ForTest]</a>
            <!--button class="btn btn-danger" style="margin-left:100px"><a href="/test/reset">重置[ForTest]</a></button-->
            <!--not perfect-->
        </div>
        <div id="home-content">
            <!--very important part-->
        </div>
    </div>
</div>

<script src="/javascripts/user-home.js"></script>
<script>
    window.onload = function(){
        $('.breadcrumb').append('<li class="active">用户首页</li>');
        homeContentClean();
        user = "<%=user.mail%>";

        $.ajax({
            url: '/post/data/index',
            type: 'post',
            data: {
                    user: user
            },
            dataType: 'json',
            async: true,
            success: function(doc){
                icd_index = doc.icd_index;
                ccd_index = doc.ccd_index;
                $(".<%=active%>").trigger("click");
            }
        });
    }
</script>